package com.situ.day1;

import org.junit.Test;

public class HelloWord {
    //main
    //Code review
    //arg:argument 参数
    public static void main(String[] args){
        //sout
        //Ctrl+Alt+L
        System.out.println("HelloWorld");
        System.out.println("HelloWorld");
        System.out.println("HelloWorld");
        System.out.println("HelloWorld");

        //表达一个人的年龄
        //类型  变量
        //=：是赋值
        //“见名知意”
        int age = 23;
        int $age2 = 23;
        //int 9$age2 = 23;

        //变量 variable var
        int age1 = 24;
        age1 = 34;
        //final 修饰的变量就是常量:值不能改变
        final int age2 = 23;
        //Cannot assign a value to variable age2
        //age2 = 34;
        //test();
    }

    @Test
    public void test() {
        //sout
        System.out.println("Helloworld.test");
        int num = 3;
        num = num + 1;
        double d = 3.14;
        float f = 3.14f;
        char ch1 = 'a';
        char ch2 = '中';
        boolean b1 = true;
        boolean b2 = false;
    }
    @Test
    public void test2() {
        System.out.println("Helloworld.test2");
    }
}
